package br.rafael.mulock.controle_de_estoque.visao.telas;

import java.awt.EventQueue;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.border.EmptyBorder;

import br.rafael.mulock.controle_de_estoque.utilitarios.Texto;

class TelaEstoque extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JPanel contentPane;
	private Texto texto;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					TelaEstoque frame = new TelaEstoque();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}
	
	/**
	 * Create the frame.
	 */
	public TelaEstoque() {
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setTitle("Controle de estoque - Estoque");
		setResizable(false);
		setBounds(100, 100, 760, 520);
		setLocationRelativeTo(null);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(null);
		setContentPane(contentPane);
		
		addWindowListener(new WindowListener() {
            public void windowActivated(WindowEvent e) {}  
            public void windowClosing(WindowEvent e) {}  
            public void windowDeactivated(WindowEvent e) {}  
            public void windowDeiconified(WindowEvent e) {}  
            public void windowIconified(WindowEvent e) {}  
            public void windowOpened(WindowEvent e) {}  
            public void windowClosed(WindowEvent e) {  
                TelaVendaEstoque telaVendaEstoque = new TelaVendaEstoque();
                telaVendaEstoque.setVisible(true);
            }  
		});
		
		texto = new Texto();
		
		JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
		tabbedPane.setBounds(0, 0, 754, 492);
		contentPane.add(tabbedPane);
	}

}
